<%@page import="Product.ProductVo"%>
<%@page import="Product.ProductMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link
	href="${pageContext.request.contextPath }/homepage/product/product.css"
	rel="stylesheet">
<title>상품 안내</title>
<script type="text/javascript">
	function cal() {
		window.open("${pageContext.request.contextPath }/homepage/product/calculator.jsp", "_blank",
				"resizable=yes, top=300, right=200, width:800px;", true);
	}
</script>
</head>
<body>
	<jsp:useBean id="vo" class="Product.ProductVo" />
	<jsp:setProperty property="*" name="vo" />
	<%
		ProductMyba product = new ProductMyba();
		product.setProductVo(vo);
		ProductVo v = product.view();
		String prd = "";
		String url = "../intranet/product/photo/" + v.getPD_fnm();
	%>
	<div id="PMain">
		<div id="PTop" class="panel panel-info"
			style="height: 75px; border: 1px solid #eaeaea;">
			<div
				style="width: 445px; line-height: 75px; font-size: 23px; margin-left: 30px;">

				신용 대출</div>
		</div>

		<div id="PContent" class="panel panel-info"
			style="border: 1px solid #eaeaea; width: 1000px; float: left; margin-top: 20px; margin-left: 100px;">

			<div
				style="float: left; width: 100%; height: 30px; line-height: 30px; font-size: 25px; margin-top: 20px; margin-left: 30px;"><%=v.getPD_nm()%>
				<input type="button" value="상담신청" class="btn btn-success"
					style="float: right; margin-right: 50px;" onclick="location.href='index.jsp?inc_content=./board/board_view.jsp&bo_no=1408B006'"><input
					type="button" value="목록" style="float: right; margin-right: 10px;"
					onclick='history.back()'>
			</div>

			<div style="float: left;">
				<img src="<%=url%>"
					style="width: 280px; height: 280px; float: left; margin: 30px; margin-top: 15px; margin-bottom: 0px;"
					class="img-thumbnail">
			</div>

			<div
				style="float: left; width: 100px; text-align: center; margin-top: 15px;">
				<div class="pv">상품번호</div>
				<div class="pv">대출기간</div>
				<div class="pv">대출금리</div>
				<div class="pv">상환방법</div>
				<div class="pv">최소한도</div>
				<div class="pv">최대한도</div>
				<div class="pv">상품특징</div>
			</div>

			<div style="float: left; margin-top: 15px;">
				<div class="pv" >
					<li><%=v.getPD_no()%></li>
				</div>
				<div class="pv" style="font-weight: bold; color:#ff0000;">
					<li><%=v.getPD_prd()%></li>
				</div>
				<div class="pv" style="font-weight: bold;">
					<li>고정금리 <%=v.getPD_rate()%></li>
				</div>
				<div class="pv" style="font-weight: bold;">
					<li><%=v.getPD_pback()%></li>
				</div>
				<div class="pv">
					<li><%=v.getPD_min()%></li>
				</div>
				<div class="pv" style="font-weight: bold;color:#ff0000;">
					<li><%=v.getPD_max()%></li>
				</div>
				<div class="pv-1">
					<li><%=v.getPD_content()%></li>
				</div>
			</div>

			<div style="width: 100%; height: 30px; float: left;">
				<input type="button" value="대출계산"
					style="margin-left: 865px; width: 115px; margin-top: -10px;"
					onclick="cal()">
			</div>
		</div>

		<div id='PBottom' style="height: 480px; width: 20px;">

			<%-- <%@include file='calculator.jsp'%> --%>
		</div>

	</div>

</body>
</html>